import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { MenuListComponent } from "./menu-list/menu-list.component";
import { RoleListComponent } from "./role-list/role-list.component";
import { UserListComponent } from "./user-list/user-list.component";
import { UserSettingComponent } from "./user-setting/user-setting.component";


const routes: Routes = [
  { path: "user", component: UserListComponent, data: { title: "用户信息" } },
  { path: "role", component: RoleListComponent, data: { title: "角色信息" } },
  { path: "menu", component: MenuListComponent, data: { title: "菜单" } },
  { path: "user-setting", component: UserSettingComponent, data: { title: "用户设置" } }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PmsRoutingModule {
}
